from sqlalchemy import Column, Float, Integer, String
from database.db_init import Base


class Server_status(Base):
    __tablename__ = "Server_Status"
    id = Column(Integer, primary_key=True, index=True)
    cpu_usage = Column(Float, unique=False)
    memory_usage = Column(Float, unique=False)
    ai_process_count = Column(Integer, unique=False)
    web_frontend_status = Column(String, unique=False)
    web_backend_status = Column(String, unique=False)
    disk_usage_percent = Column(Float, unique=False)
    disk_utilization_percent = Column(Float, unique=False)
    network_bandwidth = Column(String, unique=False)
    network_throughput = Column(String, unique=False)
    system_load_average_percent = Column(Float, unique=False)
    gpu_model = Column(String, unique=False)
    gpu_utilization = Column(String, unique=False)
    gpu_memory_free = Column(String, unique=False)
    gpu_temperature = Column(String, unique=False)
    timestamp = Column(String, unique=False)
